package com.itheima.service.impl;

import com.itheima.dao.UserDao;
import com.itheima.service.UserService;

import java.util.Map;
import java.util.Properties;

public class UserServiceImpl implements UserService {

    private Integer num;
    private String name;
    private Properties props;
    private Map map;

    public void setMap(Map map) {
        this.map = map;
    }

    public void setProps(Properties props) {
        this.props = props;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public void setName(String name) {
        this.name = name;
    }

    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void run() {
        System.out.println("UserServiceImpl is run ..."+num+", "+name+", "+props+", "+map);
        userDao.run();
    }
}
